package com.ipay.wechat.service;

import java.util.HashMap;

import com.ipay.wechat.pojo.MerchantInfo;

public interface ApplyService {
	public void addApplication(MerchantInfo merchantInfo);
	
	public MerchantInfo querryMerchantInfoByMerchantNo(String merchantNo);

	public MerchantInfo querryMerchantInfoByMobile(String mobile);

	/**
	 * 更具openid  查询商户信息  管理查询 cashiers(收银员表) wechat_login(登录表)
	 * @param openid
	 * @return
	 */
	public MerchantInfo querryInfoByOpenid(String openid);

	public void save(HashMap<String, String> map);

	public void saveCompany(HashMap<String, String> map);
	public int saUpdateCompany(HashMap<String, String> map);
	public int saUpdateLegalPerson(HashMap<String, String> map);
	public int saUpdateSettlingAccount(HashMap<String, String> map);

	public void update(String merchantNo, String mobile);
	
	public MerchantInfo getInfoByOpenid(String openid);
	
	public void updateEmail(String merchantNo, String email);
}
